package com.itheima.reggie;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author ：石破天
 * @date ：Created in 2022年11月16日
 * @description ：
 * @version: 1.0
 */
@Slf4j
@SpringBootApplication
@EnableTransactionManagement//开启事务注解扫描
@ServletComponentScan //扫描的是 servlet相关的组件servlet filter listener
@EnableCaching //开启springcache注解扫描
public class ReggieApplication {

    public static void main(String[] args) {
        SpringApplication.run(ReggieApplication.class,args);
        log.info("项目启动成功.....");
    }
}
